#include <iostream>
#include <deque>
#include <unordered_map>
#include <map>
#include <vector>
#include <string>

using namespace std;

int main(int argc, char const *argv[])
{
    // 双端队列
    deque<int> dq;
    dq.push_back(1);
    dq.push_front(2);
    cout << dq.front() << endl; // 输出 2
    dq.pop_front();
    
    // hashMap
    unordered_map<string, int> hashTable;
    hashTable["apple"] = 10;
    cout << hashTable["apple"] << endl; // 输出 10


    map<string, int> myMap;
    myMap["apple"] = 12;
    cout << myMap["apple"]; // 输出 10

    return 0;
}
